import request from '@/utils/request'
import qs from 'qs'

export const getUniversalTable = (params) => {
    return new request({
        url: './universalTable',
        method: 'get',
        params: params
    });
}
export const tongYongList = (params) => {
    return new request({
        url: './tongYongList',
        method: 'get',
        params: params
    });
}
export const tongYongInfo = (params) => {
    return new request({
        url: './tongYongInfo',
        method: 'get',
        params: params
    });
}
export const label = (params) => {
    return new request({
        url: './label',
        method: 'get',
        params: params
    });
}
export const topList = (params) => {
    return new request({
        url: './topList',
        method: 'get',
        params: params
    });
}

//查询规则名称列表
export const ruleNameList = (params) => {
    return new request({
        url: './public_sentiment_three/generalMonitoringRule/ruleNameList',
        method: 'post',
        params: params
    });
}

//删除规则
export const remove = (params) => {
    return new request({
        url: './public_sentiment_three/generalMonitoringRule/remove',
        method: 'post',
        data: params
    });
}

//添加规则
export const add = (params) => {
    return new request({
        url: './public_sentiment_three/generalMonitoringRule/add',
        method: 'post',
        data: params
    });
}

//查询规则详情
export const detail = (params) => {
    return new request({
        url: './public_sentiment_three/generalMonitoringRule/detail',
        method: 'post',
        params: params
    });
}
//列表数据
export const generalist = (params) => {
    return new request({
        url: './public_sentiment_three/generalMonitoring/listBrowse',
        method: 'post',
        data: params
    });
}
//是否订阅
export const isdingyue = (params) => {
    return new request({
        url: './public_sentiment_three/generalMonitoring/alreadySubscription',
        method: 'post',
        params: params
    });
}
//修改情感
export const emotion = (params) => {
    return new request({
        url: './public_sentiment_three/generalMonitoring/editEmotionalPolarity',
        method: 'post',
        params: params
    });
}
//文章级别判断
export const editlevel = (params) => {
    return new request({
        url: './public_sentiment_three/generalMonitoring/editLevelInference',
        method: 'post',
        params: params
    });
}
//信息推送
export const editTuisong = (params) => {
    return new request({
        url: './public_sentiment_three/generalMonitoring/infoPush',
        method: 'post',
        params: params
    });
}
//订阅
export const editDingyue = (params) => {
    return new request({
        url: './public_sentiment_three/generalMonitoring/subscription',
        method: 'post',
        params: params
    });
}
//删除
export const deleteList = (params) => {
    return new request({
        url: './public_sentiment_three/generalMonitoring/remove',
        method: 'post',
        data: params
    });
}
//一级菜单
export const getOneEventType = (params) => {
    return new request({
        url: './public_sentiment_three/generalMonitoring/getOneEventType',
        method: 'post',
        params: params
    });
}

//获取自定义事件名称
export const getExistEvent = (params) => {
    return new request({
        url: './public_sentiment_three/generalMonitoring/getExistEvent',
        method: 'post',
        params: params
    });
}
//获取二级菜单
export const getTwoEventType = (params) => {
    return new request({
        url: './public_sentiment_three/generalMonitoring/getTwoEventType',
        method: 'post',
        params: params
    });
}
//获取三级菜单
export const getThreeEventType = (params) => {
    return new request({
        url: './public_sentiment_three/generalMonitoring/getThreeEventType',
        method: 'post',
        params: params
    });
}
//添加事件追踪
export const addEventAnalyze = (params) => {
    return new request({
        url: './public_sentiment_three/generalMonitoring/addEventAnalyze',
        method: 'post',
        data: params
    });
}
//通用监测详情
export const event_detail = (params) => {
    return new request({
        url: './public_sentiment_three/generalMonitoring/detail',
        method: 'post',
        params: params
    });
}
//生成快报接口
export const addFastReport = (fast) => {
    return new request({
        url: './public_sentiment_three/generalMonitoring/addFastReport',
        method: 'post',
        data: fast
    });
}

export const afterFastReport = (fast) => {
    return new request({
        url: './public_sentiment_three/generalMonitoring/afterFastReport',
        method: 'post',
        params: fast
    });
}
//快报业务影响
export const getBusinessImpact = (params) => {
    return new request({
        url: './public_sentiment_three/reportFast/getBusinessImpact',
        method: 'post',
        params: params
    });
}
//快报_关联部门查询项
export const getDepartment = (params) => {
    return new request({
        url: './public_sentiment_three/reportFast/getGradeDepartment',
        method: 'post',
        params: params
    });
}
//快报——一级菜单
export const getOneEventType_kuaibao = (params) => {
    return new request({
        url: './public_sentiment_three/reportFast/getOneEventType',
        method: 'post',
        params: params
    });
}
//快报——三级菜单
export const  gettwoEventType_kuaibao = (params) => {
    return new request({
        url: './public_sentiment_three/reportFast/getTwoEventType',
        method: 'post',
        params: params
    });
}
//快报——三级菜单
export const getthreeEventType_kuaibao = (params) => {
    return new request({
        url: './public_sentiment_three/reportFast/getThreeEventType',
        method: 'post',
        params: params
    });
}
//修改标签
export const editDataTags = (params) => {
    return new request({
        url: './public_sentiment_three/generalMonitoringTags/editDataTags',
        method: 'post',
        data: params
    });
}
//获取统计分析——快报
export const statisticsCommonDispatch = (params) => {
    return new request({
        url: './public_sentiment_three/statisticsCommon/statisticsCommonDispatch',
        method: 'get',
        params: params
    });
}
//获取统计分析——舆情情感趋势
export const statisticsCommonEmotionTrand = (params) => {
    return new request({
        url: './public_sentiment_three/statisticsCommon/statisticsCommonEmotionTrand',
        method: 'get',
        params: params
    });
}
//获取统计分析——情感分析饼图
export const statisticsCommonEmotionTotal = (params) => {
    return new request({
        url: './public_sentiment_three/statisticsCommon/statisticsCommonEmotionTotal',
        method: 'get',
        params: params
    });
}
//获取统计分析——媒体分类柱状图
export const statisticsCommonMedia = (params) => {
    return new request({
        url: './public_sentiment_three/statisticsCommon/statisticsCommonMedia',
        method: 'get',
        params: params
    });
}
//获取统计分析——热词词云
export const statisticsCommonWordCloud = (params) => {
    return new request({
        url: './public_sentiment_three/statisticsCommon/statisticsCommonWordCloud',
        method: 'get',
        params: params
    });
}
//获取统计分析——热词分布趋势
export const statisticsCommonWordTrand = (params) => {
    return new request({
        url: './public_sentiment_three/statisticsCommon/statisticsCommonWordTrand',
        method: 'get',
        params: params
    });
}
//通用监测数据 查询相似列表
export const getSimilarList = (params) => {
    return new request({
        url: './public_sentiment_three/generalMonitoring/getSimilarList',
        method: 'post',
        params: params
    });
}
//通用监测数据相似列表查看详情
export const getSimilarDetail = (params) => {
    return new request({
        url: './public_sentiment_three/generalMonitoring/getSimilarDetail',
        method: 'post',
        params: params
    });
}

//通用监测查询列表数据总数
export const ruleNameCount = (params) => {
    return new request({
        url: './public_sentiment_three/generalMonitoringRule/ruleNameCount',
        method: 'post',
        params: params
    });
}
// -------------------------------------------------------------------------------------------------
//3期新增接口
//情感分析饼图下钻
export const getThreeStatisticsCommonEmotionTotal = (params) => {
    return new request({
        url: './public_sentiment_three/yqtj/yqtjStatisticsHomePageTops/statisticsCommonEmotionTotal',
        method: 'get',
        params: params
    });
}

//舆情情感趋势下钻
export const getThreeStatisticsCommonTwoEmotionTrand = (params) => {
    return new request({
        url: './public_sentiment_three/yqtj/yqtjStatisticsHomePageTops/statisticsCommonTwoEmotionTrand',
        method: 'get',
        params: params
    });
}

// 获取图片base64
export const getImgBase = (params) => {
    return new request({
        url: './public_sentiment_three/yqtj/yqtjImageSimilarityResults/getImgBase',
        method: 'get',
        params: params
    });
}
export const getprovice = (params) => {
    return new request({
        url: './public_sentiment_three/reportFast/getProvince',
        method: 'get',
        params: params
    });
}

// 获取用户对应的角色
export const getRuleId = (params) => {
    return new request({
        url: './public_sentiment_three/eventAnalyzeRule/getRuleId',
        method: 'post',
        params: params
    });
}
